package cn.edu.pku.ss.music.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import cn.edu.pku.ss.music.R;

public class ProtocolActivity extends Activity{
	private TextView title_textview;
	private Button agree_button;
	private Button disagree_button;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.protocol_layout);
		
		agree_button = (Button) findViewById(R.id.protocol_agree);
		disagree_button = (Button) findViewById(R.id.protocol_disagree);
		
		View header = findViewById(R.id.protocol_header);
		title_textview = (TextView) header.findViewById(R.id.header_title);
		title_textview.setText(R.string.protocol_title);
		
		agree_button.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View arg0) {
				Intent intent = new Intent(ProtocolActivity.this, RegisterActivity.class);
				startActivity(intent);
			}
		});
	}
	
}
